package phoenix.web.locators.benaughty;

import org.openqa.selenium.By;

import phoenix.web.locators.base.MyProfileLocatorsBase;

/**
 * MyProfile page locators for BeNaughty
 */
public class MyProfileLocators extends MyProfileLocatorsBase
{
	/**
	 * Overrides specific locators
	 */
	public MyProfileLocators()
	{
		blockAvatarUpload = By.xpath("//*[@id='userNavPhoto']//img[contains(@src,'photo/show/id/')]");

		// Edit buttons:
		btnEditMainInfo = By.xpath("//*[@id='profileEditor']//a[@class='b-edit']");
		btnSaveMainInfo = By.xpath("//*[@id='profileEditor']//a[@class='btn green btn-done']");
		btnCancelMainInfo = By.xpath("//*[@id='profileEditor']//a[@class='btn grey btn-cancel']");

		btnEditPersonalInfo = By.xpath("//*[@id='profileDetails']//a[@class='b-edit b-edit-profileDetails']");
		btnSavePersonalInfo = By.xpath("//*[@id='profileDetails']//a[@class='btn green btn-done']");
		btnCancelPersonalInfo = By.xpath("//*[@id='profileDetails']//a[@class='btn grey btn-cancel']");

		btnEditLookingForInfo = By.xpath("//*[@id='profileLookingFor']//a[@class='b-edit b-edit-lookingFor']");
		btnSaveLookingForInfo = By.xpath("//*[@id='profileLookingFor']//button[@class='btn green btn-done']");
		btnCancelLookingForInfo = By.xpath("//*[@id='profileLookingFor']//button[@class='btn grey btn-cancel']");

		// Main info:
		selectDay = By.xpath("//*[@id='profileEditor']//*[@class='input-holder b-date']//*[@class='value']");
		selectMonth = By.xpath("//*[@id='profileEditor']//*[@class='input-holder b-month']//*[@class='value']");
		selectYear = By.xpath("//*[@id='profileEditor']//*[@class='input-holder b-year']//*[@class='value']");
		txtLocation = By.xpath("//*[@id='profileEditor']//div[@class='input-holder b-region']//input");
		txtDescription = By.xpath("//*[@id='profileEditor']//*[@id='textarea']//textarea");
		txtAboutMe = By.xpath("//*[@id='profileEditor']//textarea[@id='about']");
		// Main info edited:
		txtScreenname = By.xpath("//*[@id='profileEditor']//h2[@class='screenname']");
		txtAge = By.xpath("//*[@id='profileEditor']//span[@class='years']");
		txtLocationEdited = By.xpath("//*[@id='profileEditor']//span[@class='city']");
		txtDescriptionEdited = By.xpath("//*[@id='profileEditor']//p[@class='b-user-details']");
		txtAboutMeEdited = By.xpath("//*[@id='profileEditor']//p[@description-value]");

		// Personal info:
		selectHeight = By.xpath("(//*[@class='edit-item'])[1]//*[@class='field']//*[@data-value]");
		selectWeight = By.xpath("(//*[@class='edit-item'])[2]//*[@class='field']//*[@data-value]");
		selectBodyType = By.xpath("(//*[@class='edit-item'])[3]//*[@class='field']//*[@data-value]");
		selectHairColor = By.xpath("(//*[@class='edit-item'])[4]//*[@class='field']//*[@data-value]");
		selectEyesColor = By.xpath("(//*[@class='edit-item'])[5]//*[@class='field']//*[@data-value]");
		selectMaritalStatus = By.xpath("(//*[@class='edit-item'])[6]//*[@class='field']//*[@data-value]");
		selectChildren = By.xpath("(//*[@class='edit-item'])[7]//*[@class='field']//*[@data-value]");
		selectLiving = By.xpath("(//*[@class='edit-item'])[8]//*[@class='field']//*[@data-value]");
		selectSmoke = By.xpath("(//*[@class='edit-item'])[9]//*[@class='field']//*[@data-value]");
		selectOrientation = By.xpath("(//*[@class='edit-item'])[10]//*[@class='field']//*[@data-value]");
		selectEthnicOrigin = By.xpath("(//*[@class='edit-item'])[11]//*[@class='field']//*[@data-value]");
		selectEducation = By.xpath("(//*[@class='edit-item'])[12]//*[@class='field']//*[@data-value]");
		selectReligion = By.xpath("(//*[@class='edit-item'])[13]//*[@class='field']//*[@data-value]");
		selectTattoo = By.xpath("(//*[@class='edit-item'])[14]//*[@class='field']//*[@data-value]");
		selectPircing = By.xpath("(//*[@class='edit-item'])[15]//*[@class='field']//*[@data-value]");
		selectDrink = By.xpath("(//*[@class='edit-item'])[16]//*[@class='field']//*[@data-value]");
		selectIncome = By.xpath("(//*[@class='edit-item'])[17]//*[@class='field']//*[@data-value]");
		// Personal info edited:
		selectHeightEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='height']");
		selectWeightEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='weight']");
		selectBodyTypeEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='build']");
		selectHairColorEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='hair_color']");
		selectEyesColorEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='eye_color']");
		selectMaritalStatusEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='marital_status']");
		selectChildrenEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='children']");
		selectLivingEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='living']");
		selectSmokeEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='smoke']");
		selectOrientationEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='sexual_orientation']");
		selectEthnicOriginEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='race']");
		selectEducationEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='education']");
		selectReligionEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='religion']");
		selectTattooEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='tattoo']");
		selectPircingEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='pierced']");
		selectDrinkEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='drink']");
		selectIncomeEdited = By.xpath("//*[@class='data-items']//li[@data-value-name='income']");

		// Looking for info:
		selectLookingGender = By.xpath("//*[@id='profileLookingFor']//*[@class='input-holder']//*[@data-value-gender]");
		selectLookingAgeFrom = By.xpath("//*[@id='profileLookingFor']//*[@data-select-max='searchFormAgeFrom']//*[@class='value']");
		selectLookingAgeTo = By.xpath("//*[@id='profileLookingFor']//*[@data-select-min='searchFormAgeTo']//*[@class='value']");
		txtLookingLocation = By.xpath("//*[@id='profileLookingFor']//*[@class='input-value select-input value']");
		// Looking for info edited:
		selectLookingGenderEdited = By.xpath("//*[@class='data-items']//li[@gender-value]");
		selectLookingAgeEdited = By.xpath("//*[@class='data-items']//li[@age-value]");
		txtLookingLocationEdited = By.xpath("//*[@class='data-items']//li[@location-value]");

		// Active field for method selectItemInList:
		blockActiveField = By.cssSelector(".field.active li:contains");
		blockActiveInputHolder = By.cssSelector(".input-holder.active li:contains");

		// Photo upload:
		blockPhotoUploader = By.id("ProfilePhotoUploadForm");
		btnUploadPhotoMenu = By.cssSelector(".btn-activity.btn-myphotos");
		inputFile = By.xpath("//input[@name='file']");
		blockPrimaryPhoto = By.xpath("//div[@id='profilePhoto']/div[@id='profilePhotoHolder']");
		btnRemovePhoto = By.cssSelector("span.btn-close.remove");
	}
}
